package com.cloud.bean.rule;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author liuyuan
 * @since 2022-08-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("r_rule")
public class Rule extends Model<Rule> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 规则名称
     */
    private String name;
    /**
     * 选择类型
     * */
    private String selectType;
    /**
     * code
     */
    private String code;
    /**
     * 校验类型
     * */
    private String checkType;

    /**
     * 规则公式
     */
    private String value;

    /**
     * 操作人id
     */
    private Integer operatorId;

    /**
     * 商户号
     */
    private String customerOn;

    /**
     * 类型
     */
    private String type;


    private LocalDateTime createDate;

    private LocalDateTime updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
